package com.yic.module.mes.controller.admin.reportworkhours.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 报工工时 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class ReportWorkHoursBaseVO {

    @Schema(description = "报工记录", requiredMode = Schema.RequiredMode.REQUIRED, example = "10684")
    @NotNull(message = "报工记录不能为空")
    private Long reportId;

    @Schema(description = "员工", requiredMode = Schema.RequiredMode.REQUIRED, example = "22944")
    @NotNull(message = "员工不能为空")
    private Long userId;

    @Schema(description = "工时", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "工时不能为空")
    private BigDecimal workHours;

    @Schema(description = "工时合计", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "工时合计不能为空")
    private BigDecimal total;

}
